.index {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  .toolbar {
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;

    &>* {
      margin-left: 10px;
    }
  }

  .pages {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;

    .line {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;

      .word {
        margin: 5px 4px;
        width: 24px;
        height: 24px;
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        position: relative;

        &.actived {
          color: @primary-color;
        }

        &.noTextActived {
          border: 1px solid @primary-color;
          border-radius: 4px;
        }

        &.hasChord {
          background-color: @primary-color;
          border: 1px solid @primary-color;
          border-radius: 4px;
          color: white;
          padding: 4px;
          box-sizing: content-box;

          &.actived {
            color: @primary-color;
            background-color: rgba(@primary-color, .25);
          }
        }

        .chord {
          position: absolute;
          top: -14px;
          left: 0;
          font-size: 12px;
          color: @primary-color;
          line-height: 1;
          white-space: nowrap;
        }

        .beat {
          position: absolute;
          bottom: 0;
          left: 30px;
          padding: 2px 6px;
          border-radius: 3px;
          font-size: 12px;
          line-height: 1;
          background-color: @primary-color;
          color: white;
          transform: translateY(50%);
        }
      }
    }
  }

  .footer {
    padding: 12px 0;
  }
}